﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using System.Data.Common;

namespace MicroDal
{
    /// <summary>
    /// Argument which handlers of the DbResourceCalled event is called with
    /// </summary>
    public class DbResourceCallEventArgs : EventArgs
    {
        /// <summary>
        /// Constructor
        /// </summary>
        public DbResourceCallEventArgs(string query, object[] parameters)
        {
            this.SqlQuery = query;
            this.Parameters = parameters;
        }
        /// <summary>
        /// The sql query
        /// </summary>
        public string SqlQuery { get; set; }
        /// <summary>
        /// Parameters
        /// </summary>
        public object[] Parameters { get; set; }
    }
}
